12. Dynamic Links in Console

Dynamic Links in Console

Here's the plan for implementing Firebase Dynamic Links on Android.

We'll create dynamic links in Green Thumb that will take users directly to the detail screens for the different plants. We can use this to promote different plants during relevant gardening seasons.

Let's create our first Dynamic Link. Navigate to your project and select the Dynamic Links option from the menu on the left:

Select the Green Thumb Project > Select Dynamic Links from the bottom of the left-hand side menu

Select the Green Thumb Project > Select Dynamic Links from the bottom of the left-hand side menu

Click on the Get Started button:

Next, you'll set up the dynamic link. Put in the deep link URL http://greenthumb.example.com/1 along with the name "Fennel Details". The "1" in the URL is the plant ID for fennel. Of course, this deep link won't work in a web browser. It will only used for the Green Thumb mobile app.

We currently don't have an iOS app, so select "Open the deep link URL in the browser" for the link behavior on iOS.

For the deep link behavior on Android, select "Open deep link in your Android app" and select the package name for Green Thumb.

We will ignore the optional fields.

Finally, click "Create Dynamic Link". The dynamic link will be listed in the Firebase console. There are a few more options in the dotted menu if you hover your mouse to the right of each link:

  • Link details shows details about the link, such as the deep link, associated mobile apps, long Dynamic Link, and short Dynamic Link.
  • Link analytics shows engagement metrics on users who received and opened the link.
  • Link flow shows you a graphical flow chart on the behavior of the Dynamic Link when a user clicks on it.